package com.common.enums;


public enum EquipmentSourceEnum {
    OSTMS("1","奥森"),
    WWT("2","万物通"),
    YB ("3","易呗"),
    PLD("4","拍乐多")
    ;
    public String code;
    public String message;

    EquipmentSourceEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public static String getEquipmentSourceName(String value){
        for(EquipmentSourceEnum pxcmIdEnum : EquipmentSourceEnum.values()){
            if(value.equals(pxcmIdEnum.getCode())){
                return pxcmIdEnum.getMessage();
            }
        }
        return null;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

}
